//
//  HHYPlaceHodlerView.m
//  大股票
//
//  Created by apple on 2019/8/14.
//  Copyright © 2019 apple. All rights reserved.
//

#import "HHYPlaceHodlerView.h"

@interface HHYPlaceHodlerView ()
@property (nonatomic, strong) UIView *contentView;

@end

@implementation HHYPlaceHodlerView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
        [self addSubview:self.contentView];
        
    }
    
    return self;
}

- (IBAction)addAction:(UIButton *)sender {
    if (self.addHandler) {
        self.addHandler();
    }
}

#pragma mark - getter
- (UIView *)contentView {
    if (!_contentView) {
        UINib *nib = [UINib nibWithNibName:@"HHYPlaceHodlerView" bundle:nil];
        NSArray *objs = [nib instantiateWithOwner:self options:nil];
        _contentView = objs[0];
        _contentView.frame = self.bounds;
    }
    return _contentView;
}
@end
